<style>
    textarea {
        width: 100%;
        padding: 5px;
        height: 400px;
        font-size: 15px;
        line-height: 1.5;
        border: 1px solid #ddd;
    }

    .tab-pane {
        border: 1px solid #ddd;
        border-top: none;
    }
</style>

<div class="container-fluid">
    <div class="row">
        <div class="col-md-12">
            <textarea id="txtCode1" style="height:100px">一二12ab</textarea>
        </div>
        <div class="col-md-12" id="codetoolbox">
            <ul class="nav nav-tabs" role="tablist">
                <li class="nav-item">
                    <a class="nav-link active" id="tab1" data-toggle="tab" href="#pane1">
                        加密/解密
                    </a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" id="tab2" data-toggle="tab" href="#pane2">
                        散列/哈希
                    </a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" id="tab3" data-toggle="tab" href="#pane3">
                        编码转换
                    </a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" id="tab4" data-toggle="tab" href="#pane4">
                        其它
                    </a>
                </li>
            </ul>
            <div class="tab-content">
                <div class="tab-pane fade show active" id="pane1">
                    <div class="card-body px-2 py-2">
                        <div class="input-group mb-2">
                            <div class="input-group-prepend">
                                <span class="input-group-text">密钥：</span>
                            </div>
                            <input type="text" class="form-control" id="txtKey1" placeholder="请输入密钥">
                        </div>
                        <div class="btn-group">
                            <button type="button" class="btn btn-success">AES</button>
                            <button type="button" class="btn btn-light"><i class="fa fa-rotate-left"></i></button>
                        </div>
                        <div class="btn-group">
                            <button type="button" class="btn btn-success">DES</button>
                            <button type="button" class="btn btn-light"><i class="fa fa-rotate-left"></i></button>
                        </div>
                        <div class="btn-group">
                            <button type="button" class="btn btn-success">RC4</button>
                            <button type="button" class="btn btn-light"><i class="fa fa-rotate-left"></i></button>
                        </div>
                        <div class="btn-group">
                            <button type="button" class="btn btn-success">Rabbit</button>
                            <button type="button" class="btn btn-light"><i class="fa fa-rotate-left"></i></button>
                        </div>
                        <div class="btn-group">
                            <button type="button" class="btn btn-success">TripleDES</button>
                            <button type="button" class="btn btn-light"><i class="fa fa-rotate-left"></i></button>
                        </div>
                    </div>
                </div>
                <div class="tab-pane fade" id="pane2">
                    <div class="card-body px-2 py-2">
                        <div class="btn-group">
                            <button class="btn btn-primary">MD5</button>
                        </div>
                        <div class="btn-group">
                            <button type="button" class="btn btn-primary">SHA1</button>
                            <button type="button" class="btn btn-light">224</button>
                            <button type="button" class="btn btn-light">256</button>
                            <button type="button" class="btn btn-light">384</button>
                            <button type="button" class="btn btn-light">512</button>
                        </div>
                        <div class="card mt-3">
                            <div class="input-group mb-2">
                                <div class="input-group-prepend">
                                    <span class="input-group-text">密钥：</span>
                                </div>
                                <input type="text" class="form-control" id="txtKey2" placeholder="HmacSHA、HmacMD5密钥">
                            </div>
                            <div class="btn-group">
                                <button type="button" class="btn btn-primary">HmacSHA1</button>
                                <button type="button" class="btn btn-light">224</button>
                                <button type="button" class="btn btn-light">256</button>
                                <button type="button" class="btn btn-light">384</button>
                                <button type="button" class="btn btn-light">512</button>
                                <button type="button" class="btn btn-light">HmacMD5</button>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="tab-pane fade" id="pane3">
                    <div class="card-body px-2 py-2">
                        <div class="btn-group">
                            <button type="button" class="btn btn-info">encodeURI</button>
                            <button type="button" class="btn btn-light"><i class="fa fa-rotate-left"></i></button>
                        </div>
                        <div class="btn-group">
                            <button type="button" class="btn btn-info">encodeURIComponent</button>
                            <button type="button" class="btn btn-light"><i class="fa fa-rotate-left"></i></button>
                        </div>
                        <div class="btn-group">
                            <button type="button" class="btn btn-info">Base64</button>
                            <button type="button" class="btn btn-light"><i class="fa fa-rotate-left"></i></button>
                        </div>
                        <div class="btn-group">
                            <button type="button" class="btn btn-info">Unicode</button>
                            <button type="button" class="btn btn-light"><i class="fa fa-rotate-left"></i></button>
                        </div>
                        <div class="btn-group">
                            <button type="button" class="btn btn-info">ASCII</button>
                            <button type="button" class="btn btn-light"><i class="fa fa-rotate-left"></i></button>
                        </div>
                    </div>
                </div>
                <div class="tab-pane fade" id="pane4">
                    <div class="card-body px-2 py-2">
                        <div class="btn-group">
                            <button type="button" class="btn btn-danger">UUID</button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-md-12 mt-2">
            <textarea id="txtCode2"></textarea>
        </div>
    </div>
</div>

<script src="https://lib.baomitu.com/crypto-js/3.1.9-1/crypto-js.min.js"></script>

<script async defer src="https://lib.baomitu.com/crypto-js/3.1.9/aes.min.js"></script>
<script async defer src="https://lib.baomitu.com/crypto-js/3.1.9/tripledes.min.js"></script>
<script async defer src="https://lib.baomitu.com/crypto-js/3.1.9/rc4.min.js"></script>
<script async defer src="https://lib.baomitu.com/crypto-js/3.1.9/rabbit.min.js"></script>
<script async defer src="https://lib.baomitu.com/crypto-js/3.1.9/tripledes.min.js"></script>

<script async defer src="https://lib.baomitu.com/crypto-js/3.1.9/md5.min.js"></script>
<script async defer src="https://lib.baomitu.com/crypto-js/3.1.9/sha1.min.js"></script>
<script async defer src="https://lib.baomitu.com/crypto-js/3.1.9/sha224.min.js"></script>
<script async defer src="https://lib.baomitu.com/crypto-js/3.1.9/sha256.min.js"></script>
<script async defer src="https://lib.baomitu.com/crypto-js/3.1.9/sha384.min.js"></script>
<script async defer src="https://lib.baomitu.com/crypto-js/3.1.9/sha512.min.js"></script>

<script async defer src="https://lib.baomitu.com/crypto-js/3.1.9/hmac-sha1.min.js"></script>
<script async defer src="https://lib.baomitu.com/crypto-js/3.1.9/hmac-sha224.min.js"></script>
<script async defer src="https://lib.baomitu.com/crypto-js/3.1.9/hmac-sha256.min.js"></script>
<script async defer src="https://lib.baomitu.com/crypto-js/3.1.9/hmac-sha384.min.js"></script>
<script async defer src="https://lib.baomitu.com/crypto-js/3.1.9/hmac-sha512.min.js"></script>
<script async defer src="https://lib.baomitu.com/crypto-js/3.1.9/hmac-md5.min.js"></script>

<script async defer src="https://lib.baomitu.com/crypto-js/3.1.9/enc-base64.min.js"></script>

<script src="/js/code.js" asp-append-version="true"></script>